package org.example.controller;

import cn.lingyangwl.framework.core.response.Resp;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shenguangyang
 */
@RefreshScope
@RestController
public class Test01Controller {

    @Value("${extension-demo.username:default}")
    private String myConfigUsername;

    @GetMapping("/t1")
    public Resp<?> t1() {
        System.out.println("demo.username: " + myConfigUsername);
        return Resp.ok();
    }
}
